from django.contrib import admin

# Register your models here.
from apps.category.models import Category, Tags, Article, IPADDR


class AticleAdmin(admin.ModelAdmin):
    list_display = ['title']
    class Media:
        js = (
            '../../static/js/kindeditor/kindeditor-all-min.js',
            '../../static/js/kindeditor/kindeditor-all.js',
            '../../static/js/kindeditor/config.js'
        )

admin.site.register(Category)
admin.site.register(Article,AticleAdmin)
admin.site.register(Tags)
admin.site.register(IPADDR)
